<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!--[if lt IE 9]>
<script>
(function(){
    var tags = ['header','footer','figure','figcaption','details','summary','hgroup','nav','aside','article','section','mark','abbr','meter','output','progress','time','video','audio','canvas','dialog'];
    for(var i=tags.length - 1;i>-1;i--){ document.createElement(tags[i]);}
})();
</script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="${skin}/v1.min.css?v=${v}" />
<link rel="stylesheet" type="text/css" href="${skin}/index.css?v=${v}" />
<script type="text/javascript" src="${path }/js/jquery1.10.2.min.js?v=${v}"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
<script src="${path }/js/member/draw.js?v=${v}"></script>
<script src="${path }/js/member/bindCard.js?v=${v}"></script>
<title>${configUtil.sitename}-提现</title>
</head>

<body>
<!-- head -->
<c:import url="../../include/top.jsp"></c:import>

<div class="wrap">
<div class="blank"></div>
<div class="user_nav f_l mr5">
		<c:import url="../left.jsp"><c:param name="type" value="withdraw"></c:param></c:import>
</div>
<div class="user_right f_l">
	<!--private js&css start-->
<link rel="stylesheet" type="text/css" href="//assets5.ncfstatic.com/v1/css/user_web2.css?v=201510161044" />

<div class="user_right">
        <div class="user_right_box">
	        <div class="user_title"><h1><i class="ico_tixian"></i>提现</h1></div>
	        <div class="user_tip">
	            <p>
	            	1、所有投资款项都将由第三方支付机构汇付天下进行托管，实际到账时间依据第三方支付机构汇付天下及提现银行而有所差异。
				</p>
				<p>2、平台禁止洗钱、信用卡充值套现等行为，平台有拒绝信用卡充值以及无投资账户的提现申请。</p>
	        </div>
	        <c:choose> 
			     <c:when test="${isBindCard eq '1'}">
		     			<form name="Jcarry_From" id="Jcarry_From" action="/account/savecarry" method="post">
				            <input type='hidden' id='token_id' name='token_id' value='1444974212309' >
				            <input type='hidden' id='token' name='token' value='e2e3ceed4a86969c839cf2b6f7214285' >            
				            <div class="take">
				                <dl class="clearfix">
				                    <dt>账户名：</dt>
				                    <dd><span class="color-yellow1">${account.userName }</span></dd>
				                </dl>
				                <dl class="clearfix">
				              <dt>现金余额：</dt>
				                    <fmt:formatNumber value="${(account.baseMoney-account.freezeMoney)/100}" var ="Jcarry_totalAmountFormatNumber" type="currency" pattern="0.00" />
				                    <dd><fmt:formatNumber value="${(account.baseMoney-account.freezeMoney)/100 }" type="currency" pattern="￥0.00"/> 元<input id="Jcarry_totalAmount" type="hidden" value="0.00"></dd>
				                    <input type="hidden" value="${Jcarry_totalAmountFormatNumber}" id="hidden_Jcarry_totalAmount"/>
				                </dl>
				                <dl class="clearfix">
				                    <dt>提现金额：</dt>
				                    <dd><input type="text" name="money" class="user_name" id="money" placeholder="金额精确到分" /> 元&nbsp;&nbsp;<span id="Jcarry_balance" style='color:red;' class="f_red lh28"></span></dd>
				                </dl>
				            </div>
				            <div class="tc p20 f14">
				                <input type="hidden" name="acount_balance" id="Jcarry_acount_balance_res" style="width:70px">                <input type="button" onclick="draw()" class="user_button mt20 mb15" value="申请提现">
				                <div class="pb37">(预计 1 个工作日内到账, 实际到账时间依据账户托管方及提现银行而有所差异)</div>
				            </div>
				        </form>
			     </c:when> 
			     <c:when test="${isBindCard eq '0'}"> 
			     	<div style="font-size: 20px;color: red;">很抱歉，您还没有绑定银行卡，暂时不能取现。现在就去绑定吗？ <a href="<%=request.getContextPath()%>/memberCenter/cardManager.htm"> >>点我绑定</a></div>
			     </c:when> 
			     <c:otherwise></c:otherwise>
			</c:choose>
        </div>
</div>
</div>
<div class="blank"></div>
</div>

<c:import url="../../include/foot.jsp"></c:import>
</body>
</html>